package com.rpay.dao.user;

import com.rpay.model.user.UserVerifyDO;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Repository;

/**
 * Title：
 * Description
 *
 * @author fxg06 on 2018/5/3
 * @version 1.0
 */
@Repository
public class UserVerifyDao {
    @Autowired
    @Qualifier("readSqlSession")
    private SqlSessionTemplate readSqlSession;

    @Autowired
    @Qualifier("writeSqlSession")
    private SqlSessionTemplate writeSqlSession;

    public int insert(UserVerifyDO userVerifyDO){
        return writeSqlSession.insert("rpay.user.verify.insert", userVerifyDO);
    }
}
